<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title>{cscms:title}</title>
    <meta name="Keywords" content="{cscms:keywords}" />
    <meta name="Description" content="{cscms:description}" />
    <link rel="shortcut icon" href="{cscms:path}favicon.ico" />
    <link rel="stylesheet" href="{cscms:webpath}packs/font/font.css">
    <link rel="stylesheet" type="text/css" href="{cscms:tempurl}css/style.css"/>
    <script type='text/javascript' src='{cscms:tempurl}js/wap.js'></script>
    <script type='text/javascript' src='{cscms:tempurl}js/common.js'></script>
</head>
<body>
    {cscms:indexhead}
    <div class="layui-tab layui-tab-card" style="box-shadow: none;margin-top: 0px">
        <ul class="layui-tab-title">
            <li><a href="[user:url ulink=index]">主页</a></li>
            <li><a href="[user:url ulink=info]">资料</a></li>
            {cscms:model table="plugins" field="dir,name" loop="10" order="asc"}
            {if:'[model:dir]'!='singer'}
                <li id="nav_[model:dir]"><a class="noFlush_load_link" href="[user:url ulink=[model:dir]]">[model:name]</a></li>
                {end if}
            {/cscms:model}
            <li><a href="[user:url ulink=friend]">关系</a></li>
            <li><a href="[user:url ulink=gbook]">留言</a></li>
        </ul>
        <div class="layui-tab-content" style="padding: 5px 0px">
            <div class="layui-tab layui-tab-brief" style="box-shadow: none;margin: 0px">
                <ul class="layui-tab-title">
                    <li class="layui-this">{if:{cscms:uid}==[user:id]}我{else}TA{end if}的图集</li>
                    {if:{cscms:uid}==[user:id]}<a href="{cscmsphp}spacelink('pic,add','pic');{/cscmsphp}" class="layui-btn layui-btn-small" style="float: right;margin-right: 10px;margin-top: 3px">创建图集</a>{end if}
                </ul>
                <div class="layui-tab-content" style="overflow: hidden;text-align: center;padding: 0px;">
                    <div class="layui-tab" >
                        <ul class="layui-tab-title">
                            <li {if:{cscms:fid}==0}class="layui-this"{end if}><a href="[user:url ulink=pic]">全部图集</a></li>
                            {cscms:class table="pic_list" loop="8" fid="0" order="asc"}
                            <li class="{if:{cscms:fid}==[class:id]}layui-this{else}{end if}"><a href="[user:url ulink=pic]/[class:id]">[class:name]</a></li>
                            {/cscms:class}
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                    <table class="md-zj">
                                        <tbody>
                                        {cscms:pictype table="pic_type" field="id,name,cid,pic,uid,singerid,hits,dhits,chits,addtime" pagesize="21" uid="auto"}
                                            <tr>
                                                <td><a href="[pictype:url zdy=pic,id,show,id]"><img style="width: 60px;height: 60px;" src="[pictype:pic dir=pic]" alt="[pictype:name]"></a></td>
                                                <td class="md-zj-info">
                                                    <a href="[pictype:url zdy=pic,id,show,id]"><i class="{if:[pictype:i]<4}colord{else}{end if}">[pictype:i]</i>.[pictype:name]</a>
                                                    
                                                    <div class="mp-more" style="margin-bottom: 3px;">
                                                        <span><i class="fa fa-eye"></i>&nbsp;浏览([pictype:hits])</span>
                                                        <span><i class="fa fa-thumbs-o-up"></i>&nbsp;顶([pictype:dhits])</span>
                                                        <span><i class="fa fa-thumbs-o-down"></i>&nbsp;踩([pictype:chits])</span>
                                                    </div>
                                                    <div class="mp-more">
                                                        <span>分类：[pictype:zdy zd=pic_list,name,cid]</span>
                                                        <span>歌手：{if:'[pictype:zdy zd=singer,name,singerid]'!=''}[pictype:zdy zd=singer,name,singerid]{else}佚名{end if}</span>
                                                        <span>会员：{if:'[pictype:zdy zd=user,name,cid]'!=''}[pictype:zdy zd=user,name,cid]{else}暂无{end if}</span>
                                                    </div>
                                                </td>
                                            </tr>
                                        {/cscms:pictype}
                                        </tbody>
                                    </table>
                                <div class="zanwu" {if:{cscms:pagedata}>0}style="display: none"{end if}>暂无相关记录！</div>
                                <div class="page" {if:{cscms:pagecout}<2}style="display:none"{end if}>
                                    <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0" style="width: 100%;text-align: center;">
                                        <a href="{cscms:pageup}" class="layui-laypage-last" title="上一页"><i class="layui-icon">&#xe603;</i></a>
                                        {cscms:pagenum len=3}
                                        <a href="{cscms:pagedown}" class="layui-laypage-next"><i class="layui-icon">&#xe602;</i></a>
                                    </div>
                               </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
    {cscms:indexbottom}
    <script type="text/javascript">
        $('#nav_pic').addClass('layui-this');
    </script>
</body>
</html>